package com.jeeplus.test.jlnu.deanOffice.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.test.jlnu.deanOffice.domain.entity.JlnuDeansOffice;
import com.jeeplus.test.jlnu.deanOffice.domain.vo.JlnuDeansOfficeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeansOfficeMapper {
    Page<JlnuDeansOfficeDto> selectAdmissionInfoByOffice( JlnuDeansOfficeDto jlnuDeansOffices, String officeId, Page<JlnuDeansOfficeDto> page);

    void saveDeansOffice(@Param("jlnuDeansOffices") List<JlnuDeansOffice> jlnuDeansOffices);
    void updateDeanOffice(JlnuDeansOfficeDto jlnuDeansOfficeDto);
    JlnuDeansOfficeDto getDeanOfficeInfoById(String studentId);
    JlnuDeansOfficeDto selectAdmissionInfoByRecord(JlnuDeansOfficeDto jlnuDeansOfficeDto);

    List<Integer> selectAdmissionInfo(@Param("type") String type, @Param("value") String value);

    List<Integer> selectJlnuDeansOffice(@Param("type") String type, @Param("value") String value, @Param("sfzh") String sfzh);

    int batchUpdateDeansOffice(@Param("ids") List<Integer> ids,@Param("dto") JlnuDeansOffice jlnuDeansOffice);
}